#ifndef __LED_TEST_H__
#define __LED_TEST_H__
#include "led_manager.h"
#include "drv_gpio.h"

typedef struct fac_led_resource
{
    unsigned int pin;              // GPIO口
} fac_led_res_t;

#define PIN_RUN GET_PIN(D, 13)  // LED 15/CN10
#define PIN_BLUE GET_PIN(D, 14) // LED 14
#define PIN_CAT1 GET_PIN(G, 2)  // LED 10
#define PIN_WIFI GET_PIN(G, 3)  // LED 11
#define PIN_ETH GET_PIN(G, 4)   // LED 12
#define PIN_WIOTA GET_PIN(G, 5) // LED 13
#define PIN_MQTT GET_PIN(A, 0)  // CN5

#define LED_RESOURCE_SIZE (sizeof(factory_led_resource) / sizeof(factory_led_resource[0]))
    
void factory_led_init(void);
void led_all_switch(char flag);
void led_all_blink(void);

#endif